﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;

namespace TheVoid.Model
{
    public class Person
    {
        public String Id { get; set; }
        public String ColorCode { get; set; }
        [ContentSerializerIgnore]
        public Color Color
        {
            get
            {
                String[] values = ColorCode.Split(' ');
                return new Color(Convert.ToInt32(values[0]), Convert.ToInt32(values[1]), Convert.ToInt32(values[2]));
            }
        }
        public List<String> Names { get; set; }

        public string GetName(int _index)
        {
            return Names[_index % Names.Count];
        }
    }
}
